Adwaita: update tooltip styling
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Nov 2015 17:26:05 +0000 (12:26 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 10 Nov 2015 17:26:05 +0000 (12:26 -0500)
Adapt to the changes in the previous commit. Note that tooltip
appearance is currently affected by tooltips having lost their
csd nature, due to a regression.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 9eabe3b725bf2b60b34b0cda4de40831c21d31ec..75baa7bed4da83fe28b2e1bc7991a0e31828c7be 100644 (file)
@@ -3043,7 +3043,7 @@ infobar {
  * Tooltips *
  ************/
 
-.tooltip {
+tooltip {
   &.background {
     // background-color needs to be set this way otherwise it gets drawn twice
     // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
@@ -3063,12 +3063,10 @@ infobar {
   decoration.csd {
     background-color: transparent;
   }
-}
-
-.tooltip * { //Yeah this is ugly
-  padding: 4px;
-  background-color: transparent;
-  color: inherit; // just to be sure
+  * { //Yeah this is ugly
+    padding: 4px;
+    background-color: transparent;
+  }
 }
 
 /*****************
@@ -3276,7 +3274,7 @@ decoration {
     box-shadow: 0 1px 2px transparentize(black, 0.8),
                 0 0 0 1px transparentize($_wm_border,0.1);
   }
-  .csd.tooltip & {
+  tooltip.csd & {
     border-radius: 5px;
     box-shadow: none;
   }
index 3fb983108feb2711c7c3049e98019487c39d9712..aff2631e9306b365e550d1c250b1b66b8f9fdcb2 100644 (file)
@@ -4260,24 +4260,22 @@ infobar {
 /************
  * Tooltips *
  ************/
-.tooltip {
+tooltip {
   color: white;
   padding: 4px;
   /* not working */
   border-radius: 5px;
   box-shadow: none;
   text-shadow: 0 1px black; }
-  .tooltip.background {
+  tooltip.background {
     background-color: rgba(0, 0, 0, 0.8);
     background-clip: padding-box;
     border: 1px solid rgba(255, 255, 255, 0.1); }
-  .tooltip decoration.csd {
+  tooltip decoration.csd {
+    background-color: transparent; }
+  tooltip * {
+    padding: 4px;
     background-color: transparent; }
-
-.tooltip * {
-  padding: 4px;
-  background-color: transparent;
-  color: inherit; }
 
 /*****************
  * Color Chooser *
@@ -4418,7 +4416,7 @@ decoration {
   .csd.popup decoration {
     border-radius: 0;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8); }
-  .csd.tooltip decoration {
+  tooltip.csd decoration {
     border-radius: 5px;
     box-shadow: none; }
   messagedialog.csd decoration {
index a68ff77b205bce39825276d6d61b2d8daa981e67..c54fbaab796bd113a52e87fedf6c332c23e3d0cd 100644 (file)
@@ -4432,24 +4432,22 @@ infobar {
 /************
  * Tooltips *
  ************/
-.tooltip {
+tooltip {
   color: white;
   padding: 4px;
   /* not working */
   border-radius: 5px;
   box-shadow: none;
   text-shadow: 0 1px black; }
-  .tooltip.background {
+  tooltip.background {
     background-color: rgba(0, 0, 0, 0.8);
     background-clip: padding-box;
     border: 1px solid rgba(255, 255, 255, 0.1); }
-  .tooltip decoration.csd {
+  tooltip decoration.csd {
+    background-color: transparent; }
+  tooltip * {
+    padding: 4px;
     background-color: transparent; }
-
-.tooltip * {
-  padding: 4px;
-  background-color: transparent;
-  color: inherit; }
 
 /*****************
  * Color Chooser *
@@ -4590,7 +4588,7 @@ decoration {
   .csd.popup decoration {
     border-radius: 0;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }
-  .csd.tooltip decoration {
+  tooltip.csd decoration {
     border-radius: 5px;
     box-shadow: none; }
   messagedialog.csd decoration {